package com.lagou.edu.config;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.stereotype.Component;

/**
 * @author bobcheng
 * @date 2020/7/6
 */
@Component
@Data
@RefreshScope
public class MailConfig {

    @Value("${email.host}")
    private String host;

    @Value("${email.port}")
    private Integer port;

    @Value("${email.username}")
    private String userName;

    @Value("${email.password}")
    private String passWord;

    @Value("${email.from}")
    private String emailForm;

    @Value("${email.timeout}")
    private String timeout;
}
